package com.easyctba.core.domain.bo;

import com.easyctba.common.core.validate.AddGroup;
import com.easyctba.common.core.validate.EditGroup;
import com.easyctba.core.domain.CtbaEntropy;
import com.easyctba.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 信息熵分析业务对象 ctba_entropy
 *
 * @author LionLi
 * @date 2024-02-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CtbaEntropy.class, reverseConvertGenerate = false)
public class CtbaEntropyBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 项目id
     */
    @NotNull(message = "项目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     * 信息熵文本
     */
    @NotBlank(message = "信息熵文本不能为空", groups = { AddGroup.class, EditGroup.class })
    private String entropyText;

    /**
     * 分析状态
     */
    @NotBlank(message = "分析状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String entropyStatus;

    /**
     * 分析结果
     */
    @NotNull(message = "分析结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double result;

    /**
     * 分析实际文本长度
     */
    @NotNull(message = "分析实际文本长度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long size;

    /**
     * 分析耗时(ms)
     */
    @NotNull(message = "分析耗时(ms)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long time;

    @NotNull(message = "源文件地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long url;
}
